//营销项目接口
import request from "@/utils/request";



// 云盘位置字典下拉
export function getMarketingProjectList(query, data) {
  return request({
    url: `/system/project/selectMarketingProjectList`,
    method: "post",
    params: query,
    data,
  });
}

//查询跟进评论详情
export function getProjectFollowDetail(followId) {
  return request({
    url: `/system/project/selectProjectFollowDetail?followId=${followId}`,
    method: "get",
  });
}

//添加评论
export function addEvaluate(data) {
  return request({
    url: `/system/project/addEvaluate`,
    method: "post",
    data,
  });
}

//编辑评论
export function editEvaluate(data) {
  return request({
    url: `/system/project/updateEvaluate`,
    method: "post",
    data,
  });
}

//编辑评论
export function deleteEvaluate(followEvaluateId) {
  return request({
    url: `/system/project/deleteEvaluate?followEvaluateId=${followEvaluateId}`,
    method: "post",
  });
}

//编辑项目跟进信息
export function updatefollow(data) {
  return request({
    url: `/system/follow/update`,
    method: "post",
    data,
  });
}

//查询项目商务进度列表
export function getBusScheduleListByProjectId(projectId) {
  return request({
    url: `/system/busSchedule/selectBusScheduleListByProjectId?projectId=${projectId}`,
    method: "get",
  });
}

//新增项目商务进度
export function addbusSchedule(data) {
  return request({
    url: `/system/busSchedule/add`,
    method: "post",
    data,
  });
}

//编辑项目商务进度
export function editbusSchedule(data) {
  return request({
    url: `/system/busSchedule/edit`,
    method: "post",
    data,
  });
}
